﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/ad/adminmaster.Master" CodeBehind="EditAdvertise.aspx.vb" Inherits="SanDauGia.DAL.WebForm1" %>
<%@ Register assembly="CollectionPager" namespace="SiteUtils" tagprefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;" >
        <tr style="height:34px; background-color:#3B5998;font-weight:bold;color:White;margin-left:10px">
            <td style="width:100%" colspan ="3" align="center">
                Thông tin quảng cáo&nbsp;</td>           
        </tr>
        <tr>
            <td align="right" style="height:30px" colspan="2">
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    DeleteMethod="Delete" InsertMethod="Insert" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetDataBy3" 
                    TypeName="SanDauGia.DAL.SanDauGiaTableAdapters.QUANGCAOTableAdapter" 
                    UpdateMethod="Update">
                    <DeleteParameters>
                        <asp:Parameter Name="Original_MaQuangCao" Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="MaQuangCao" Type="Int32" />
                        <asp:Parameter Name="NoiDungQuangCao" Type="String" />
                        <asp:Parameter Name="LinkQuangCao" Type="String" />
                        <asp:Parameter Name="HinhQuangCao" Type="String" />
                        <asp:Parameter Name="HienThi" Type="Boolean" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="MaQuangCao" Type="Int32" />
                        <asp:Parameter Name="NoiDungQuangCao" Type="String" />
                        <asp:Parameter Name="LinkQuangCao" Type="String" />
                        <asp:Parameter Name="HinhQuangCao" Type="String" />
                        <asp:Parameter Name="HienThi" Type="Boolean" />
                        <asp:Parameter Name="Original_MaQuangCao" Type="Int32" />
                    </UpdateParameters>
                </asp:ObjectDataSource>
                &nbsp;
                <%--<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetList_Category"
                    TypeName="FShop.BAL.Category_BAL"></asp:ObjectDataSource>--%>
                </td>
            <td >
                &nbsp;
                <br />
            </td>
        </tr>
        <tr>
            <td align="left" style="height:30px" colspan="2">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    DataKeyNames="MaQuangCao" DataSourceID="ObjectDataSource1" 
                    EnableModelValidation="True" AllowPaging="True" CellPadding="4" 
                    ForeColor="#333333" GridLines="None">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
                            ShowSelectButton="True" />
                        <asp:BoundField DataField="MaQuangCao" HeaderText="MaQuangCao" ReadOnly="True" 
                            SortExpression="MaQuangCao" />
                        <asp:BoundField DataField="NoiDungQuangCao" HeaderText="NoiDungQuangCao" 
                            SortExpression="NoiDungQuangCao" />
                        <asp:BoundField DataField="LinkQuangCao" HeaderText="LinkQuangCao" 
                            SortExpression="LinkQuangCao" />
                        <asp:TemplateField HeaderText="HinhQuangCao" SortExpression="HinhQuangCao">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("HinhQuangCao") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Image ID="Image1" runat="server" Height="136px" 
                                    ImageUrl='<%# Bind("HinhQuangCao", "~/ImagesProduct/{0}") %>' Width="246px" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:CheckBoxField DataField="HienThi" HeaderText="HienThi" 
                            SortExpression="HienThi" />
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                </asp:GridView>
            </td>
            <td >
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" style="width:24%; height:30px">
                &nbsp;</td>
            <td align="left" style="width: 227px" >
                
                <br />
                
            </td>
            <td >
                &nbsp;
            </td>
        </tr>
        <tr>
            <td align="right" style="width:24%; height:30px">
                &nbsp;</td>
            <td align="left" style="width: 227px" >
                &nbsp;</td>
            <td >
            </td>
        </tr>
    <tr>
        <td align="right" style="width: 24%; height: 30px">
            &nbsp;</td>
        <td align="left" style="width: 227px">
            &nbsp;</td>
        <td>
        </td>
    </tr>
    <tr>
        <td align="right" style="width: 24%; height: 30px">
            &nbsp;</td>
        <td align="left" style="width: 227px">
            &nbsp;</td>
        <td>
        </td>
    </tr>
        <tr>
            <td align="right" style="width:24%; height:100px">
                &nbsp;</td>
            <td align="left" style="width: 227px" >
                &nbsp;</td>
            <td >
            </td>
        </tr>
        
        <tr>
            <td align="right" style="height:30px">
                &nbsp;</td>
            <td align="left " style="height:30px; width: 227px;">
                &nbsp;</td>
            <td >
            </td>
        </tr>
            
                 <tr>            
            <td align="right" style="width:26%;height:30px">               
            </td>
            <td align="left" colspan="2">
                &nbsp;&nbsp;&nbsp;    
               
            
            </td>            
        </tr>
    
   
    </table>

<script language="javascript" type="text/javascript">
    function ClearForm() {

    }
    function CheckValidate() {
        return true;
    }
    function btnBack_onclick() {

    }

    function btnAdd_onclick() {

    }

</script>

</asp:Content>
